package com.huluobo.a2109monthdemo.home

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.huluobo.a2109monthdemo.R
import com.huluobo.a2109monthdemo.Utils.ImageUtils

/**
 *  Created by LC on 2024/1/26.
 */
class HomeGoodsListAdapter(list: MutableList<HomeGoodsListBean>) :
    BaseQuickAdapter<HomeGoodsListBean, BaseViewHolder>(R.layout.item_home_goods_list, list) {
    override fun convert(helper: BaseViewHolder, item: HomeGoodsListBean) {
        helper.setText(R.id.home_item_iv_goods_desc, item.goods_desc)
        helper.setText(R.id.home_item_tv_goods_price, "价格:￥${item.goods_default_price}.00元")
        ImageUtils.loadImage(context, item.goods_default_icon, helper.getView(R.id.home_item_iv_goods_icon))
    }
}